package com.ym.fegin;

import com.ym.domain.Device;
import com.ym.util.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("service-device")
public interface DeviceFeignClient {

    @GetMapping("/device/{id}")
    public JSONResult getById(@RequestParam Long id);
    @GetMapping("/device/getDeviceList/byBuildId")
    public List<Device> getDeviceList(@RequestParam Long id,@RequestParam Long floorId);

    @GetMapping("/device/getDeviceListByType")
    List<Device> getDeviceListByDeviceType(@RequestParam Integer type);
}
